#!/usr/bin/python


import pygame
from pygame.locals import *
from gameobjects.vector2 import Vector2


class Character:

	def __init__( self, isPlayer, position):
		self.isPlayer = isPlayer
		self.position = position
		self.leftSheet = []
		self.rightSheet = []

	# leftSheet is a list of sprite image files for left movement
	# rightSheet is a list of sprite image files for right movement
	def loadSpriteSheets( self, leftSheet, rightSheet ):
		leftSheetFile = open(leftSheet, 'r')
		rightSheetFile = open(rightSheet, 'r')
		
		for filename in leftSheetFile:
			image = pygame.image.load(filename.rstrip())
			self.leftSheet.append(image)
		for filename in rightSheetFile:
			image = pygame.image.load(filename.rstrip())
			self.rightSheet.append(image)

	def getLeftSpriteSheet( self ):
		return self.leftSheet

	def getRightSpriteSheet( self ):
		return self.rightSheet

	def	getPosition( self ):
		return self.position

	def setPosition( self, new_pos ):
		print 'setPosition: ' + str(new_pos)
		self.position = new_pos	

